package com.commerceerp.system.mapper;

import com.commerceerp.system.entity.FxRoleInfo;
import com.commerceerp.system.entity.FxUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FxRoleInfoMapper {

    Integer addRoleInfo(FxRoleInfo fxRoleInfo);

    Integer updateRoleInfo(FxRoleInfo fxRoleInfo);

    Integer deleteRoleInfo(String roleId);

    List<FxRoleInfo> getAllRoleInfo(String roleName);

    List<Map> getAllUserInfoList(@Param("username")String username, @Param("phone")String phone);

    int updUserRoleOrPassword(@Param("id")String id, @Param("roleId")String roleId,@Param("delFlag")Integer delFlag,@Param("password")String password);

}
